package com.qianxx.network;

import java.io.Serializable;


/**
 * 数据请求的基础模型
 */
public class RequestBean implements Serializable {

    private String msg;// "返回的提示语",

    private Integer errCode;// 当errCode为非0时 查找错误信息时使用

    private Integer httpStatus;

    private Boolean success;

    private String data;

    private int integerValue;

    public int getIntegerValue() {
        return integerValue;
    }

    public void setIntegerValue(int integerValue) {
        this.integerValue = integerValue;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getErrCode() {
        if (errCode == null) {
            errCode = -1;
        }
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }

    public Integer getHttpStatus() {
        if (httpStatus == null) {
            return -1;
        }
        return httpStatus;
    }

    public void setHttpStatus(Integer httpStatus) {
        this.httpStatus = httpStatus;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }
}